<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>兴趣交友测试 - 发现志同道合的朋友</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary-color: #3b82f6;
            --secondary-color: #10b981;
            --accent-color: #f59e0b;
            --dark-color: #1e293b;
            --light-color: #f8fafc;
            --gray-color: #94a3b8;
            --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --transition: all 0.3s ease;
        }
        
        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background-color: #f1f5f9;
            color: var(--dark-color);
        }
        
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .navbar-brand {
            color: var(--primary-color);
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .nav-link {
            color: var(--dark-color);
            transition: var(--transition);
        }
        
        .nav-link:hover, .nav-link.active {
            color: var(--primary-color);
        }
        
        .search-bar {
            max-width: 500px;
            width: 100%;
        }
        
        .test-card {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
            margin-bottom: 24px;
        }
        
        .test-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--hover-shadow);
        }
        
        .test-card-header {
            padding: 16px;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .test-card-body {
            padding: 16px;
        }
        
        .test-card-footer {
            padding: 12px 16px;
            border-top: 1px solid #e2e8f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .test-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 8px;
            transition: var(--transition);
        }
        
        .test-card:hover .test-title {
            color: var(--primary-color);
        }
        
        .test-description {
            color: var(--gray-color);
            font-size: 0.95rem;
            margin-bottom: 16px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .author-info {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }
        
        .author-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-name {
            font-weight: 500;
            font-size: 0.9rem;
        }
        
        .post-date {
            font-size: 0.8rem;
            color: var(--gray-color);
        }
        
        .stats {
            display: flex;
            gap: 16px;
            color: var(--gray-color);
            font-size: 0.85rem;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .image-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 4px;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 16px;
        }
        
        .image-grid.single-image {
            grid-template-columns: 1fr;
        }
        
        .image-grid.three-images {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .image-grid.three-images img:first-child {
            grid-column: span 2;
            grid-row: span 1;
        }
        
        .grid-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            aspect-ratio: 1/1;
        }
        
        .category-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 500;
            margin-right: 8px;
            margin-bottom: 8px;
        }
        
        .action-buttons {
            display: flex;
            gap: 10px;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: var(--gray-color);
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
            padding: 5px 10px;
            border-radius: 4px;
        }
        
        .action-btn:hover {
            background-color: #f1f5f9;
            color: var(--primary-color);
        }
        
        .action-btn.liked {
            color: #ef4444;
        }
        
        .action-btn.saved {
            color: var(--accent-color);
        }
        
        .section-title {
            font-size: 1.75rem;
            font-weight: 700;
            margin-bottom: 24px;
            padding-bottom: 8px;
            border-bottom: 3px solid var(--primary-color);
            display: inline-block;
        }
        
        .featured-test {
            grid-column: span 2;
        }
        
        @media (max-width: 768px) {
            .featured-test {
                grid-column: span 1;
            }
            
            .image-grid {
                aspect-ratio: 16/9;
            }
            
            .image-grid.single-image img {
                height: 200px;
            }
            
            .action-buttons {
                flex-wrap: wrap;
            }
        }
        
        /* 特殊布局样式 */
        .horizontal-card {
            display: flex;
            height: 100%;
        }
        
        .horizontal-card .image-container {
            flex: 0 0 30%;
        }
        
        .horizontal-card .content-container {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .horizontal-card .test-card-footer {
            margin-top: auto;
        }
        
        @media (max-width: 768px) {
            .horizontal-card {
                flex-direction: column;
            }
            
            .horizontal-card .image-container {
                flex: 0 0 200px;
            }
        }
        
        .full-width-card .image-container {
            height: 250px;
        }
        
        .full-width-card .image-container img {
            height: 100%;
            object-fit: cover;
        }
        
        /* 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .test-card {
            animation: fadeIn 0.5s ease forwards;
        }
        
        .test-card:nth-child(2) { animation-delay: 0.1s; }
        .test-card:nth-child(3) { animation-delay: 0.2s; }
        .test-card:nth-child(4) { animation-delay: 0.3s; }
        .test-card:nth-child(5) { animation-delay: 0.4s; }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-light">
        <div class="container">
            <a class="navbar-brand" href="#">
                <i class="fas fa-compass"></i>
                <span>兴趣社交</span>
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">兴趣测试</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">交友推荐</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">兴趣社群</a>
                    </li>
                </ul>
                
                <div class="d-flex align-items-center gap-3">
                    <div class="search-bar input-group">
                        <input type="text" class="form-control" placeholder="搜索兴趣测试...">
                        <button class="btn btn-primary" type="button">
                            <i class="fas fa-search"></i>
                        </button>
                    </div>
                    
                    <div class="dropdown">
                        <button class="btn btn-secondary dropdown-toggle rounded-circle" type="button" data-bs-toggle="dropdown">
                            <img src="https://picsum.photos/id/64/40/40" alt="用户头像" width="36" height="36" class="rounded-circle">
                        </button>
                        <ul class="dropdown-menu dropdown-menu-end">
                            <li><a class="dropdown-item" href="#">个人中心</a></li>
                            <li><a class="dropdown-item" href="#">我的测试</a></li>
                            <li><hr class="dropdown-divider"></li>
                            <li><a class="dropdown-item" href="#">退出登录</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </nav>

    <!-- 主要内容 -->
    <div class="container py-5">
        <!-- 页面标题 -->
        <div class="mb-6">
            <h1 class="section-title">兴趣交友测试推荐</h1>
            <p class="text-muted">发现有趣的测试，找到志同道合的朋友</p>
        </div>
        
        <!-- 分类筛选 -->
        <div class="mb-6">
            <div class="d-flex flex-wrap gap-2">
                <button class="btn btn-primary">全部测试</button>
                <button class="btn btn-outline-primary">音乐</button>
                <button class="btn btn-outline-primary">电影</button>
                <button class="btn btn-outline-primary">旅行</button>
                <button class="btn btn-outline-primary">美食</button>
                <button class="btn btn-outline-primary">运动</button>
                <button class="btn btn-outline-primary">阅读</button>
                <button class="btn btn-outline-primary">游戏</button>
                <button class="btn btn-outline-primary">艺术</button>
                <button class="btn btn-outline-primary">更多 <i class="fas fa-chevron-down"></i></button>
            </div>
        </div>
        
        <!-- 精选测试区 -->
        <div class="mb-8">
            <h2 class="section-title">精选测试</h2>
            
            <!-- 全宽带大图的测试卡片 -->
            <div class="test-card full-width-card">
                <div class="image-container">
                    <img src="https://picsum.photos/id/1048/1200/400" alt="音乐品味测试封面" class="w-100">
                </div>
                <div class="test-card-header">
                    <div class="d-flex justify-content-between items-start">
                        <div>
                            <span class="category-badge bg-primary text-white">音乐</span>
                            <span class="category-badge bg-secondary text-white">热门</span>
                            <h3 class="test-title">你的音乐品味能匹配到多少朋友？</h3>
                        </div>
                        <div class="action-buttons">
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i> 收藏
                            </button>
                            <button class="action-btn">
                                <i class="far fa-share-square"></i> 分享
                            </button>
                        </div>
                    </div>
                </div>
                <div class="test-card-body">
                    <p class="test-description">
                        这个测试将通过15道精心设计的问题，分析你的音乐品味和偏好，找到与你音乐喜好最匹配的朋友。测试涵盖流行、摇滚、古典、爵士等多种音乐风格，完成后还能获得专属的音乐性格分析。
                    </p>
                    
                    <div class="author-info">
                        <img src="https://picsum.photos/id/1025/40/40" alt="作者头像" class="author-avatar">
                        <div>
                            <div class="author-name">王音乐</div>
                            <div class="post-date">发布于 2023-05-15</div>
                        </div>
                    </div>
                    
                    <div class="stats">
                        <div class="stat-item">
                            <i class="fas fa-eye"></i> 12,543
                        </div>
                        <div class="stat-item">
                            <i class="fas fa-comment"></i> 892
                        </div>
                        <div class="stat-item">
                            <i class="fas fa-user-friends"></i> 3,241 人已匹配
                        </div>
                    </div>
                </div>
                <div class="test-card-footer">
                    <div class="d-flex gap-2">
                        <button class="action-btn liked">
                            <i class="fas fa-heart"></i> 2,451
                        </button>
                        <button class="action-btn">
                            <i class="far fa-comment"></i> 评论
                        </button>
                    </div>
                    <button class="btn btn-primary">开始测试</button>
                </div>
            </div>
        </div>
        
        <!-- 网格布局的测试卡片 -->
        <div class="mb-8">
            <h2 class="section-title">热门兴趣测试</h2>
            <div class="row">
                <!-- 测试卡片1 - 多图布局 -->
                <div class="col-md-6">
                    <div class="test-card">
                        <div class="image-grid three-images">
                            <img src="https://picsum.photos/id/1080/300/300" alt="旅行测试图片1" class="grid-image">
                            <img src="https://picsum.photos/id/1036/300/300" alt="旅行测试图片2" class="grid-image">
                            <img src="https://picsum.photos/id/1039/300/300" alt="旅行测试图片3" class="grid-image">
                        </div>
                        <div class="test-card-body">
                            <span class="category-badge bg-info text-white">旅行</span>
                            <h3 class="test-title">你的旅行风格适合和谁同行？</h3>
                            <p class="test-description">
                                测试你的旅行偏好：是喜欢冒险探索还是休闲放松？是美食探索者还是文化体验家？找到最适合和你一起旅行的伙伴。
                            </p>
                            
                            <div class="author-info">
                                <img src="https://picsum.photos/id/1066/40/40" alt="作者头像" class="author-avatar">
                                <div class="author-name">李旅行</div>
                            </div>
                            
                            <div class="stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 8,762
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i> 543
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i> 1,876
                                </div>
                            </div>
                        </div>
                        <div class="test-card-footer">
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i> 收藏
                            </button>
                            <button class="btn btn-primary btn-sm">开始测试</button>
                        </div>
                    </div>
                </div>
                
                <!-- 测试卡片2 - 无图布局 -->
                <div class="col-md-6">
                    <div class="test-card">
                        <div class="test-card-body">
                            <span class="category-badge bg-warning text-white">书籍</span>
                            <h3 class="test-title">从阅读品味看你的灵魂伴侣</h3>
                            <p class="test-description">
                                你的阅读习惯和偏好能反映出你的思维方式和价值观。通过这个测试，发现与你阅读品味相似的人，找到可以深入讨论书籍的知己。
                            </p>
                            
                            <div class="author-info">
                                <img src="https://picsum.photos/id/1074/40/40" alt="作者头像" class="author-avatar">
                                <div class="author-name">张书生</div>
                            </div>
                            
                            <div class="stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 6,321
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i> 412
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i> 1,254
                                </div>
                            </div>
                        </div>
                        <div class="test-card-footer">
                            <button class="action-btn saved">
                                <i class="fas fa-bookmark"></i> 已收藏
                            </button>
                            <button class="btn btn-primary btn-sm">开始测试</button>
                        </div>
                    </div>
                </div>
                
                <!-- 测试卡片3 - 单图布局 -->
                <div class="col-md-6">
                    <div class="test-card">
                        <div class="image-grid single-image">
                            <img src="https://picsum.photos/id/292/600/400" alt="美食测试图片" class="grid-image">
                        </div>
                        <div class="test-card-body">
                            <span class="category-badge bg-danger text-white">美食</span>
                            <h3 class="test-title">美食偏好测试：找到你的饭搭子</h3>
                            <p class="test-description">
                                从甜咸偏好到烹饪方式，从餐厅选择到家常菜，你的饮食习惯藏着你的性格密码。找到和你口味相投的美食伙伴！
                            </p>
                            
                            <div class="author-info">
                                <img src="https://picsum.photos/id/1083/40/40" alt="作者头像" class="author-avatar">
                                <div class="author-name">刘美食</div>
                            </div>
                            
                            <div class="stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 9,876
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i> 632
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i> 2,109
                                </div>
                            </div>
                        </div>
                        <div class="test-card-footer">
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i> 收藏
                            </button>
                            <button class="btn btn-primary btn-sm">开始测试</button>
                        </div>
                    </div>
                </div>
                
                <!-- 测试卡片4 - 双图布局 -->
                <div class="col-md-6">
                    <div class="test-card">
                        <div class="image-grid">
                            <img src="https://picsum.photos/id/1058/300/300" alt="电影测试图片1" class="grid-image">
                            <img src="https://picsum.photos/id/1060/300/300" alt="电影测试图片2" class="grid-image">
                        </div>
                        <div class="test-card-body">
                            <span class="category-badge bg-dark text-white">电影</span>
                            <h3 class="test-title">电影品味测试：找到你的观影搭档</h3>
                            <p class="test-description">
                                从类型偏好到导演风格，从观影习惯到影评角度，发现与你电影品味最契合的朋友，一起讨论剧情，分享观影体验。
                            </p>
                            
                            <div class="author-info">
                                <img src="https://picsum.photos/id/1027/40/40" alt="作者头像" class="author-avatar">
                                <div class="author-name">陈电影</div>
                            </div>
                            
                            <div class="stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 7,654
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-comment"></i> 498
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i> 1,654
                                </div>
                            </div>
                        </div>
                        <div class="test-card-footer">
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i> 收藏
                            </button>
                            <button class="btn btn-primary btn-sm">开始测试</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 水平布局的测试卡片 -->
        <div class="mb-8">
            <h2 class="section-title">最新上线测试</h2>
            
            <!-- 水平布局测试1 -->
            <div class="test-card horizontal-card">
                <div class="image-container">
                    <img src="https://picsum.photos/id/1059/300/400" alt="运动测试图片" class="h-100 w-100 object-cover">
                </div>
                <div class="content-container">
                    <div class="test-card-header">
                        <span class="category-badge bg-success text-white">运动</span>
                        <h3 class="test-title">运动偏好测试：找到你的运动伙伴</h3>
                    </div>
                    <div class="test-card-body">
                        <p class="test-description">
                            无论是跑步、健身、瑜伽还是团队运动，你的运动习惯和偏好能帮助你找到最合适的运动伙伴，一起坚持，共同进步。
                        </p>
                        
                        <div class="author-info">
                            <img src="https://picsum.photos/id/1062/40/40" alt="作者头像" class="author-avatar">
                            <div>
                                <div class="author-name">赵运动</div>
                                <div class="post-date">发布于 2023-06-10</div>
                            </div>
                        </div>
                        
                        <div class="stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i> 3,210
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i> 187
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-user-friends"></i> 956 人已匹配
                            </div>
                        </div>
                    </div>
                    <div class="test-card-footer">
                        <div class="d-flex gap-2">
                            <button class="action-btn">
                                <i class="far fa-heart"></i> 765
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i> 收藏
                            </button>
                        </div>
                        <button class="btn btn-primary">开始测试</button>
                    </div>
                </div>
            </div>
            
            <!-- 水平布局测试2 - 无图 -->
            <div class="test-card horizontal-card">
                <div class="content-container">
                    <div class="test-card-header">
                        <span class="category-badge bg-primary text-white">生活方式</span>
                        <h3 class="test-title">周末活动偏好：找到你的周末玩伴</h3>
                    </div>
                    <div class="test-card-body">
                        <p class="test-description">
                            周末你喜欢宅家还是外出？喜欢热闹聚会还是安静独处？通过这个测试，找到与你周末生活方式相似的朋友，一起度过愉快周末。
                        </p>
                        
                        <div class="author-info">
                            <img src="https://picsum.photos/id/1077/40/40" alt="作者头像" class="author-avatar">
                            <div>
                                <div class="author-name">孙生活</div>
                                <div class="post-date">发布于 2023-06-08</div>
                            </div>
                        </div>
                        
                        <div class="stats">
                            <div class="stat-item">
                                <i class="fas fa-eye"></i> 2,890
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i> 156
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-user-friends"></i> 843 人已匹配
                            </div>
                        </div>
                    </div>
                    <div class="test-card-footer">
                        <div class="d-flex gap-2">
                            <button class="action-btn liked">
                                <i class="fas fa-heart"></i> 632
                            </button>
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i> 收藏
                            </button>
                        </div>
                        <button class="btn btn-primary">开始测试</button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 推荐作者的测试 -->
        <div class="mb-8">
            <h2 class="section-title">推荐作者的测试</h2>
            <div class="row">
                <div class="col-md-4">
                    <div class="test-card">
                        <div class="image-grid single-image">
                            <img src="https://picsum.photos/id/1055/300/300" alt="摄影测试图片" class="grid-image">
                        </div>
                        <div class="test-card-body">
                            <span class="category-badge bg-info text-white">摄影</span>
                            <h3 class="test-title">摄影风格测试：找到你的摄影搭档</h3>
                            <p class="test-description">
                                从构图到光线，从主题到后期，测试你的摄影偏好，找到可以一起采风、交流技巧的摄影伙伴。
                            </p>
                            
                            <div class="author-info">
                                <img src="https://picsum.photos/id/1074/40/40" alt="作者头像" class="author-avatar">
                                <div>
                                    <div class="author-name">张书生</div>
                                    <div class="text-primary text-sm">推荐作者</div>
                                </div>
                            </div>
                            
                            <div class="stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 4,567
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i> 987
                                </div>
                            </div>
                        </div>
                        <div class="test-card-footer">
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i> 收藏
                            </button>
                            <button class="btn btn-primary btn-sm">开始测试</button>
                        </div>
                    </div>
                </div>
                
                <div class="col-md-4">
                    <div class="test-card">
                        <div class="image-grid">
                            <img src="https://picsum.photos/id/1082/300/300" alt="咖啡测试图片1" class="grid-image">
                            <img src="https://picsum.photos/id/431/300/300" alt="咖啡测试图片2" class="grid-image">
                        </div>
                        <div class="test-card-body">
                            <span class="category-badge bg-warning text-white">美食</span>
                            <h3 class="test-title">咖啡偏好测试：找到你的咖啡友</h3>
                            <p class="test-description">
                                从拿铁到美式，从浅烘到深烘，你的咖啡选择反映了你的生活态度，找到和你一样热爱咖啡的朋友。
                            </p>
                            
                            <div class="author-info">
                                <img src="https://picsum.photos/id/1083/40/40" alt="作者头像" class="author-avatar">
                                <div>
                                    <div class="author-name">刘美食</div>
                                    <div class="text-primary text-sm">推荐作者</div>
                                </div>
                            </div>
                            
                            <div class="stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 3,456
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i> 765
                                </div>
                            </div>
                        </div>
                        <div class="test-card-footer">
                            <button class="action-btn">
                                <i class="far fa-bookmark"></i> 收藏
                            </button>
                            <button class="btn btn-primary btn-sm">开始测试</button>
                        </div>
                    </div>
                </div>
                
                <div class="col-md-4">
                    <div class="test-card">
                        <div class="test-card-body">
                            <span class="category-badge bg-dark text-white">游戏</span>
                            <h3 class="test-title">游戏风格测试：找到你的游戏队友</h3>
                            <p class="test-description">
                                从RPG到竞技，从单机到联机，测试你的游戏偏好和风格，找到最合拍的游戏队友。
                            </p>
                            
                            <div class="author-info">
                                <img src="https://picsum.photos/id/1025/40/40" alt="作者头像" class="author-avatar">
                                <div>
                                    <div class="author-name">王音乐</div>
                                    <div class="text-primary text-sm">推荐作者</div>
                                </div>
                            </div>
                            
                            <div class="stats">
                                <div class="stat-item">
                                    <i class="fas fa-eye"></i> 5,678
                                </div>
                                <div class="stat-item">
                                    <i class="fas fa-heart"></i> 1,234
                                </div>
                            </div>
                        </div>
                        <div class="test-card-footer">
                            <button class="action-btn saved">
                                <i class="fas fa-bookmark"></i> 已收藏
                            </button>
                            <button class="btn btn-primary btn-sm">开始测试</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 加载更多 -->
        <div class="text-center mb-6">
            <button class="btn btn-outline-primary px-6 py-2">
                <i class="fas fa-refresh me-2"></i> 加载更多测试
            </button>
        </div>
    </div>

    <!-- 页脚 -->
    <footer class="bg-dark text-white py-5">
        <div class="container">
            <div class="row">
                <div class="col-md-4 mb-4">
                    <h4 class="mb-3 d-flex align-items-center gap-2">
                        <i class="fas fa-compass"></i> 兴趣社交
                    </h4>
                    <p>通过兴趣测试，找到志同道合的朋友，拓展你的社交圈。</p>
                </div>
                <div class="col-md-4 mb-4">
                    <h5 class="mb-3">快速链接</h5>
                    <ul class="list-unstyled">
                        <li><a href="#" class="text-light">首页</a></li>
                        <li><a href="#" class="text-light">兴趣测试</a></li>
                        <li><a href="#" class="text-light">交友推荐</a></li>
                        <li><a href="#" class="text-light">兴趣社群</a></li>
                    </ul>
                </div>
                <div class="col-md-4">
                    <h5 class="mb-3">联系我们</h5>
                    <ul class="list-unstyled">
                        <li class="d-flex align-items-center gap-2"><i class="fas fa-envelope"></i> contact@interest社交.com</li>
                        <li class="d-flex align-items-center gap-2"><i class="fas fa-phone"></i> 400-888-9999</li>
                    </ul>
                    <div class="mt-3 d-flex gap-3">
                        <a href="#" class="text-light"><i class="fab fa-weixin fa-lg"></i></a>
                        <a href="#" class="text-light"><i class="fab fa-weibo fa-lg"></i></a>
                        <a href="#" class="text-light"><i class="fab fa-qq fa-lg"></i></a>
                    </div>
                </div>
            </div>
            <div class="text-center mt-5 pt-3 border-top border-secondary">
                <p>&copy; 2023 兴趣社交 版权所有</p>
            </div>
        </div>
    </footer>

    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 点赞功能
        document.querySelectorAll('.action-btn:has(.fa-heart)').forEach(btn => {
            btn.addEventListener('click', function() {
                const icon = this.querySelector('i');
                let countText = this.textContent.trim();
                let count = parseInt(countText);
                
                if (icon.classList.contains('far')) {
                    // 点赞
                    icon.classList.remove('far');
                    icon.classList.add('fas', 'text-danger');
                    count++;
                    this.classList.add('liked');
                } else {
                    // 取消点赞
                    icon.classList.remove('fas', 'text-danger');
                    icon.classList.add('far');
                    count--;
                    this.classList.remove('liked');
                }
                
                // 更新点赞数
                this.innerHTML = `<i class="${icon.classList.value}"></i> ${count}`;
            });
        });
        
        // 收藏功能
        document.querySelectorAll('.action-btn:has(.fa-bookmark)').forEach(btn => {
            btn.addEventListener('click', function() {
                const icon = this.querySelector('i');
                
                if (icon.classList.contains('far')) {
                    // 收藏
                    icon.classList.remove('far');
                    icon.classList.add('fas', 'text-warning');
                    this.classList.add('saved');
                    this.innerHTML = `<i class="${icon.classList.value}"></i> 已收藏`;
                } else {
                    // 取消收藏
                    icon.classList.remove('fas', 'text-warning');
                    icon.classList.add('far');
                    this.classList.remove('saved');
                    this.innerHTML = `<i class="${icon.classList.value}"></i> 收藏`;
                }
            });
        });
        
        // 分类筛选按钮
        document.querySelectorAll('.btn-outline-primary').forEach(btn => {
            btn.addEventListener('click', function() {
                // 移除所有按钮的活跃状态
                document.querySelectorAll('.btn-primary, .btn-outline-primary').forEach(b => {
                    b.classList.remove('btn-primary');
                    b.classList.add('btn-outline-primary');
                });
                
                // 设置当前按钮为活跃状态
                this.classList.remove('btn-outline-primary');
                this.classList.add('btn-primary');
            });
        });
        
        // 加载更多动画
        document.querySelector('.btn-outline-primary:has(.fa-refresh)').addEventListener('click', function() {
            const icon = this.querySelector('i');
            icon.classList.add('fa-spin');
            
            // 模拟加载延迟
            setTimeout(() => {
                icon.classList.remove('fa-spin');
            }, 1500);
        });
    </script>
</body>
</html>

